import request from '@/utils/request';

export async function fakeChartData() {
  return request('/api/fake_chart_data');
}

/**
 * 7/14/30天
 * @param {*} params 
 */
export async function getAllCount(params) {
  return request('/member/getAllCount', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

/**
 * 本周/月/年新增会员数、失效会员数
 * @param {*} params 
 */
export async function getMemberTrend(params) {
  return request('/member/getMemberTrend', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

/**
 * 获取大屏图片及二维码
 * @param {*} params 场馆ID
 * @returns 
 */
export async function getScrollInfo(params) {
  return request('/scroll/getScrollInfo', {
    method: 'POST',
    data: {
      ...params
    },
  });
}